export default {
  data () {
    return {
      typeList: [],
      projectList: []
    }
  },
  methods: {
    getType () {
      this.$store.dispatch('getType', {
        data: '',
        cb: (res) => {
          if (res.data.stateCode === '200') {
            this.typeList = res.data.data
          }
        }
      })
    },
    getProject () {
      this.$store.dispatch('getProject', {
        data: '',
        cb: (res) => {
          console.log('res', res)
          if (res.data.stateCode === '200') {
            this.projectList = res.data.data
          }
        }
      })
    }
  }
}
